<?php
class Pointsetting_model extends MY_Model
{
    private $table = 'blues_points_setting';
    public function __construct()
    {
        parent::__construct();
    }
    public function get_point_by_id($id)
    {
        $this->db->where("id",$id);
        $query=$this->db->get($this->table);
        return $query->row_array();
    }
   
    public function get_point_list()
    {
        $where = "";
        $sql = "SELECT * FROM blues_points_setting order by sort asc ";
        $query = $this->db->query($sql);
        return $query->result_array();        
    }

   

    
    public function edit($id,$data)
    {
        $this->db->where('id',$id);
        return $this->db->update($this->table,$data);
    }        
    
}

/* End of file flybird/orders_model.php */
/* Location: ./application/models/orders_model.php */